import type { Component } from 'vue'

const mixin: Component = {
  props: {
    multipleSelection: {
      type: Array,
      default: () => [],
    },
    visible: {
      type: Boolean,
      default: false,
    },
  },
  computed: {
    currentVisible: {
      get() {
        // @ts-ignore
        return this.visible
      },
      set(nv) {
        // @ts-ignore
        this.$emit('update:visible', nv)
      },
    },
  },
}

export default mixin
